import http from '@/utils/request'

const apiBefore = '/web/tasks'

const options = {
  ignoreCancelToken: false,
  cache: {
    enable: true
  }
}

export const clientReport = {
  // bots-messages-report
  getBotMessagesReport: params => {
    return http.get(`${apiBefore}/message_report/report-page`, { params })
  },
  // bots-trigger-report
  getBotsTriggerReport: params => {
    return http.get(`${apiBefore}/message_report/user-bot-trigger`, { params })
  },
  // /web/tasks/tennant_cw_board/findBoardList?tenantCode=1285404348503920642
  getBoardListForBotApi: (url, params) => {
    return http.get(url, { params }, options)
  }

}
